package jzqb.dao.impl;

import cnki.tpi.kbatis.sqlsession.SqlSession;
import cnki.tpi.kbatis.utils.DataSourceUtil;
import jzqb.bo.IndexBo;
import jzqb.bo.IndexLoopBo;
import jzqb.bo.StandardBo;
import jzqb.dao.IndexDao;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 情报知识数据层实现类
 */
@Repository
public class IndexDaoImpl implements IndexDao {


    @Override
    public List<IndexLoopBo> getIndexLooP(IndexBo indexBo) {
            SqlSession sqlSession = DataSourceUtil.getSqlSession();
            String statementId = "jzqb.dao.IndexDao.getIndexLooP";
            return sqlSession.selectList(statementId, indexBo, false);
        }

    @Override
    public List<StandardBo> researchResult() {
        SqlSession sqlSession = DataSourceUtil.getSqlSession();
        String statementId = "jzqb.dao.IndexDao.researchResult";
        return sqlSession.selectList(statementId, null, false);
    }
}
